package com.zcf.pojo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhouzhuang
 * @since 2018-11-28
 */
public class MyCoupon extends Model<MyCoupon> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id")
	private String id;
	private String couponId;
	private String phone;
	private String stopTime;
	/**
	 * 0:未使用 1 ：已使用
	 */
	private Integer type;
	private String time;
	private String userId;
	private String money;
	private String dinId;
	private String total;
	private Integer use;

	@TableField(exist = false)
	private String dinName;
	@TableField(exist = false)
	private String dinImg;
	@TableField(exist = false)
	private int sum;

	@TableField(exist = false)
	private int noType;

	@TableField(exist = false)
	private int desc;

	public String getTotal() {
		return total;
	}

	public void setTotal(String total) {
		this.total = total;
	}

	public String getDinImg() {
		return dinImg;
	}

	public void setDinImg(String dinImg) {
		this.dinImg = dinImg;
	}

	public int getDesc() {
		return desc;
	}

	public void setDesc(int desc) {
		this.desc = desc;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getNoType() {
		return noType;
	}

	public void setNoType(int noType) {
		this.noType = noType;
	}

	public int getSum() {
		return sum;
	}

	public void setSum(int sum) {
		this.sum = sum;
	}

	public String getDinName() {
		return dinName;
	}

	public void setDinName(String dinName) {
		this.dinName = dinName;
	}

	public String getDinId() {
		return dinId;
	}

	public void setDinId(String dinId) {
		this.dinId = dinId;
	}

	public String getMoney() {
		return money;
	}

	public void setMoney(String money) {
		this.money = money;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCouponId() {
		return couponId;
	}

	public void setCouponId(String couponId) {
		this.couponId = couponId;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getStopTime() {
		return stopTime;
	}

	public void setStopTime(String stopTime) {
		this.stopTime = stopTime;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public Integer getUse() {
		return use;
	}

	public void setUse(Integer use) {
		this.use = use;
	}
	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "MyCoupon{" + "id=" + id + ", couponId=" + couponId + ", phone=" + phone + ", stopTime=" + stopTime
				+ ", type=" + type + ", time=" + time + "}";
	}
}
